#!/bin/bash
curScriptPath=$(dirname $(readlink -f "$0"))
. $curScriptPath/../env_config.sh
. $curScriptPath/ilog.sh

crontab $curScriptPath/../config/auto_tasks.cron
/etc/init.d/cron restart
ilog 'debug' "自动任务状态如下："
crontab -l
ilog 'info' '设置自动任务成功'
